/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: syyyy
 * Date: 2025-11-09
 * Time: 20:49
 */
public enum TestEnum {
    red,black,green,white;

    public static void main(String[] args) {
        TestEnum testEnum=black;
        switch (testEnum){
            case red :
                System.out.println("red");
                break;
            case black :
                System.out.println("black");
                break;
            case green :
                System.out.println("green");
                break;
            case white :
                System.out.println("white");
                break;
        }

        TestEnum testEnum1=TestEnum.valueOf("green");
        System.out.println(testEnum1);
    }
}
